package domain;
/*
设计思想：
（1）属性：文件名、有分配到哪个磁盘块的Id(物理地址)、文件长度多少
 */

public class File {
    //文件名字
    private String name;
    //文件被分配到哪个磁盘块(物理地址)
    private int blockId;
    //文件长度
    private int fileLength;
    //文件的保护码是多少,1读写，0只读
    private int save;

    public File() {}

    public File(String name, int blockId, int fileLength, int save) {
        this.name = name;
        this.blockId = blockId;
        this.fileLength = fileLength;
        this.save = save;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getBlockId() {
        return blockId;
    }

    public void setBlockId(int blockId) {
        this.blockId = blockId;
    }

    public int getFileLength() {
        return fileLength;
    }

    public void setFileLength(int fileLength) {
        this.fileLength = fileLength;
    }

    public int getSave() {
        return save;
    }

    public void setSave(int save) {
        this.save = save;
    }
}
